package com.kiwilss.aopdemo.ui.hilt

import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.android.components.ActivityComponent

/**
 * @author : Administrator
 * e-mail : kiwilss@163.com
 * time   : 2021/02/04
 *  desc   :
 */
@Module
@InstallIn(ActivityComponent::class)
abstract class EngineModule {
    //绑定引擎
    @BindGasEngine
    @Binds
    abstract fun bindGasEngine(gasEngine: GasEngine): Engine


    @BindElectricEngine
    @Binds
    abstract fun bindElectricEngine(electricEngine: ElectricEngine): Engine

}